import request from '@/utils/request'

// 查询各室时长设置列表
export function listAreaHourSet(query) {
  return request({
    url: '/qipairoom/AreaHourSet/list',
    method: 'get',
    params: query
  })
}

// 查询各室时长设置详细
export function getAreaHourSet(id) {
  return request({
    url: '/qipairoom/AreaHourSet/' + id,
    method: 'get'
  })
}

// 新增各室时长设置
export function addAreaHourSet(data) {
  return request({
    url: '/qipairoom/AreaHourSet',
    method: 'post',
    data: data
  })
}

// 修改各室时长设置
export function updateAreaHourSet(data) {
  return request({
    url: '/qipairoom/AreaHourSet',
    method: 'put',
    data: data
  })
}

// 删除各室时长设置
export function delAreaHourSet(id) {
  return request({
    url: '/qipairoom/AreaHourSet/' + id,
    method: 'delete'
  })
}
